package com.dlut.txy.designpattern.listener.impl;


import com.dlut.txy.designpattern.listener.ConsumeResult;
import com.dlut.txy.designpattern.listener.EventListener;
import com.dlut.txy.designpattern.listener.event.QrcodeStatusModifyEvent;

public interface QrcodeStatusModifyListener extends EventListener<QrcodeStatusModifyEvent> {
    ConsumeResult consumeCreated(QrcodeStatusModifyEvent.Created created);
    ConsumeResult consumeScanned(QrcodeStatusModifyEvent.Scanned scanned);
    ConsumeResult consumeExpired(QrcodeStatusModifyEvent.Expired expired);

    default ConsumeResult consume(QrcodeStatusModifyEvent event) {
        return ConsumeResult.buildSuccess();
    }
}
